package com.yaoxuguang.concurrence.volatilePackage;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.volatilePackage
 * @Description: TODO
 * @date 2018年12月18日16:17
 */
public class Run {
    public static void main(String[] args) {
        VolatileDemo [] volatileDemos = new VolatileDemo[100];
        for (int i = 0; i < 100; i++) {
            volatileDemos[i] = new VolatileDemo();
        }
        for (int i = 0; i < 100; i++) {
            volatileDemos[i].start();
        }
    }
}
